package com.zcsy.manage.model.content;

import java.io.Serializable;
import java.util.Date;

/**
 * @Title: Announcement.java
 * @Package： com.zcsy.shop.model.content 
 * @Description: 通知公告管理
 *
 * @author lizhiheng yhrylzh@163.com
 * @Copyright: 2015 武汉中财数元信息技术有限公司 All rights reserved.
 * @date 2015年7月7日
 * @version 1.0
 * @see JDK1.7.0_75
 * @since
 */
/**
 * @Title: Announcement.java
 * @Package： com.zcsy.shop.model.content 
 * @Description: 通知公告
 *
 * @author lizhiheng yhrylzh@163.com
 * @Copyright: 2015 武汉中财数元信息技术有限公司 All rights reserved.
 * @date 2015年7月15日
 * @version 1.0
 * @see JDK1.7.0_75
 * @since
 */
public class Announcement implements Serializable{

	private static final long serialVersionUID = -7006892743590824988L;
	
	/**
	 * 主键
	 */
	private Integer id;
	
	/**
	 * 通知公告名称
	 */
	private String anncName;
	
	/**
	 * 通知公告类型：获取数据字典ID
	 */
	private Integer anncType;
	
	/**
	 * 通知公告类型：用于界面显示
	 */
	private String anncTypeName;
	
	/**
	 * 创建时间
	 */
	private Date createTime;
	
	/**
	 * 创建人
	 */
	private Integer createPerson;
	
	/**
	 * 创建人名称
	 */
	private String createPersonName;
	
	/**
	 * 起始时间：用于搜索发送时间
	 */
	private String beginTime;
	
	/**
	 * 截止时间：用于搜索发送时间
	 */
	private String endTime;
	
	/**
	 * 发送时间
	 */
	private Date sendTime;
	
	/**
	 * 发送人
	 */
	private Integer sendPerson;
	
	/**
	 * 发送人名称
	 */
	private String sendPersonName;
	
	/**
	 * 公告内容
	 */
	private String anncContent;
	
	/**
	 * 发送状态  2：草稿 1：已发送
	 */
	private Integer anncState;
	
	/**
	 * 删除状态：1：显示 0：删除
	 */
	private Integer delState;
	
	/**
	 * 发送类型（ 1：系统消息 2：物流信息）
	 */
	private Integer sendType;
	
	/**
	 * 收件人名称
	 */
	private String userName;
	
	/**
	 * 收件人id
	 */
	private String userId;
	
	/**
	 * 会员id
	 */
	private Integer memberId;
	
	/**
	 * 订单id
	 */
	private Integer orderId;
	
	/**
	 * 订单编号
	 */
	private String orderNumber;
	
	/**
	 * 商品logoId
	 */
	private Integer logoId;
	
	/**
	 * 订单状态（1：订单表 2：历史订单表）
	 */
	private Integer orderState;
	
	private Integer total; //公告列表总页数，客户端使用
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getAnncName() {
		return anncName;
	}

	public void setAnncName(String anncName) {
		this.anncName = anncName;
	}

	public Integer getSendPerson() {
		return sendPerson;
	}

	public void setSendPerson(Integer sendPerson) {
		this.sendPerson = sendPerson;
	}

	public String getAnncContent() {
		return anncContent;
	}

	public void setAnncContent(String anncContent) {
		this.anncContent = anncContent;
	}

	public Integer getAnncState() {
		return anncState;
	}

	public void setAnncState(Integer anncState) {
		this.anncState = anncState;
	}

	public Integer getDelState() {
		return delState;
	}

	public void setDelState(Integer delState) {
		this.delState = delState;
	}

	public String getSendPersonName() {
		return sendPersonName;
	}

	public void setSendPersonName(String sendPersonName) {
		this.sendPersonName = sendPersonName;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getCreatePerson() {
		return createPerson;
	}

	public void setCreatePerson(Integer createPerson) {
		this.createPerson = createPerson;
	}

	public String getCreatePersonName() {
		return createPersonName;
	}

	public void setCreatePersonName(String createPersonName) {
		this.createPersonName = createPersonName;
	}

	public Date getSendTime() {
		return sendTime;
	}

	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}

	public Integer getAnncType() {
		return anncType;
	}

	public void setAnncType(Integer anncType) {
		this.anncType = anncType;
	}

	public String getAnncTypeName() {
		return anncTypeName;
	}

	public void setAnncTypeName(String anncTypeName) {
		this.anncTypeName = anncTypeName;
	}

	public String getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(String beginTime) {
		this.beginTime = beginTime;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	public Integer getSendType() {
		return sendType;
	}

	public void setSendType(Integer sendType) {
		this.sendType = sendType;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public Integer getOrderId() {
		return orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	public Integer getMemberId() {
		return memberId;
	}

	public void setMemberId(Integer memberId) {
		this.memberId = memberId;
	}

	public String getOrderNumber() {
		return orderNumber;
	}

	public void setOrderNumber(String orderNumber) {
		this.orderNumber = orderNumber;
	}

	public Integer getLogoId() {
		return logoId;
	}

	public void setLogoId(Integer logoId) {
		this.logoId = logoId;
	}

	public Integer getOrderState() {
		return orderState;
	}

	
	public void setOrderState(Integer orderState) {
		this.orderState = orderState;
	}

	@Override
	public String toString() {
		return "Announcement [id=" + id + ", anncName=" + anncName
				+ ", anncType=" + anncType + ", anncTypeName=" + anncTypeName
				+ ", createTime=" + createTime + ", createPerson="
				+ createPerson + ", createPersonName=" + createPersonName
				+ ", beginTime=" + beginTime + ", endTime=" + endTime
				+ ", sendTime=" + sendTime + ", sendPerson=" + sendPerson
				+ ", sendPersonName=" + sendPersonName + ", anncContent="
				+ anncContent + ", anncState=" + anncState + ", delState="
				+ delState + ", sendType=" + sendType + ", userName="
				+ userName + ", userId=" + userId + ", memberId=" + memberId
				+ ", orderId=" + orderId + ", orderNumber=" + orderNumber
				+ ", logoId=" + logoId + ", orderState=" + orderState + "]";
	}

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

}
